import { PrimaryUuid, IncrementId, Entity, Tinyint, CreateDate, UpdateDate, Title, Uuid, Int, Digdit, Decimal, DateTime } from "../utils";


@Entity({
    name: 'fj_company'
})
export class FjCompanyEntity {
    @PrimaryUuid({
        primaryKeyConstraintName: 'PK_FJ_COMPANY_ID'
    })
    id: string;

    @IncrementId({
        primaryKeyConstraintName: "FJ_COMPANY_CID"
    })
    cid: number;

    @Title()
    title: string;

    @Tinyint()
    status: number;

    @Uuid()
    create_user_id: string;

    @Uuid()
    admin_id: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;

    @Uuid({ nullable: true })
    parent_id: string;

    @Int()
    count: number;

    @DateTime()
    paytime: Date;

    @Decimal({ default: 0 })
    money: number;

    @Decimal({ default: 0 })
    total_in: number;

    @Decimal({ default: 0 })
    total_out: number;

    @Digdit({ default: 0 })
    in_count: number;

    @Digdit({ default: 0 })
    out_count: number;

}
